import { ColumnProps, TableProps } from 'antd/lib/table';
import { ReactNode } from 'react';
import { ToolbarProps } from '../components/ToolBar';

export interface BasicColums<RecordType> extends ColumnProps<RecordType> {
  //列头部 帮助信息
  helpMessage?: string | string[];
}
// 定义basicTable 的类型 继承 ant table
export type BasicTableProps<T> = {
  // 列配置
  columns: BasicColums<T>[];
  // 顶部工具栏配置
  toolbar?: ToolbarProps;
} & Omit<TableProps<T>, 'columns' | 'rowSelection'>;
